package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @BisEbankB2CWAPConfig.java
 * @author wanggang
 * @2015-5-27 上午10:31:28  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_EBANKB2CWAP_CH_CFG")
public class BisEbankB2CWAPConfig extends BaseBisBankExtConfig {
    /**
	 * 
	 */
	private static final long serialVersionUID = 3773138391836527999L;

	/**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_EBANKB2CWAP_CH_CFG_SQ_GENERATOR", sequenceName="BIS_EBANKB2CWAP_CH_CFG_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_EBANKB2CWAP_CH_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_DEBIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean debitCard;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CREDIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean creditCard;

    /**
     * 支持直连网关
     * 
     * 0 - 不支持 1 - 支持
     */
    @Column(name = "SUPPORT_DIRECT", nullable = false, precision = 1, scale = 0)
    private boolean supportDirect;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isDebitCard() {
		return debitCard;
	}

	public void setDebitCard(boolean debitCard) {
		this.debitCard = debitCard;
	}

	public boolean isCreditCard() {
		return creditCard;
	}

	public void setCreditCard(boolean creditCard) {
		this.creditCard = creditCard;
	}

	public boolean isSupportDirect() {
		return supportDirect;
	}

	public void setSupportDirect(boolean supportDirect) {
		this.supportDirect = supportDirect;
	}
        
}
